package qtdz7;

import javax.swing.*;

public class MineSubmarine extends SeaObject {
    MineSubmarine() {
        super(63, 19);
    }

    public void move() {
        x += speed;
    }

    public ImageIcon getImage() {
        return Images.minesubm;
    }

    //重写getLif()方法获取命数
    public int getLife() {
        return 1;//打掉水雷潜艇,战舰的1条命
    }
}
